# 项目:
# 文件: demo1
# 作者: Yang
# 日期: 2025/5/23 09:23
# coding:utf-8
from tkinter.font import names


class Student:

    def __init__(self,name,age):
        self.uname = name
        self.uage = age

    def study(self):
        print(f'{self.uname}在学习')

    def run(self):
        print(f'{self.uname}在跑')

    def jump(self):
        print(f'{self.uname}在跳')

    def sleep(self):
        print(f'{self.uname}在睡觉')

if __name__ == '__main__':
    student = Student('秋画','25')
    counts = dir(student)
    for count in counts:
        if count.startswith('s'):
            getattr(student,count)()





